<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AJAX Example</title>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> 
</head>
<body>
    <div class="container">
        <button id="fetch-data">获取数据</button>
        <div class="result"></div>
    </div>

    <script>
        $(document).ready(function() {

            $("#fetch-data").click(function() {
                $.ajax({
                    type: "GET", 
                    url: "/s",  
                    success: function(response) {
                        $(".result").text(response);
                    },
                });
            });
        });
    </script>
</body>
</html>